﻿@model JRFinances.ViewModels.VirtualTransactions.SellVirtualTransactionViewModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Sprzedaj wirtualna transakcje</legend>
        <div class="display-label">
            Spolka</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.CompanyName)
        </div>
        <div class="display-label">
            Obecnie posiadane</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.MaxVolume)
        </div>
        <div class="editor-label">
            Data</div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Date)
        </div>
        <div class="editor-label">
            Ilosc</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Volume)
            @Html.ValidationMessageFor(model => model.Volume)
        </div>
        <div class="editor-label">
            Cena
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Price)
        </div>
        @Html.HiddenFor(model => model.CompanyName)
        @Html.HiddenFor(model => model.Date)
        @Html.HiddenFor(model => model.MaxVolume)
        @Html.HiddenFor(model => model.Price)
        <p>
            <input type="submit" value="Sprzedaj" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Powrot do listy", "Index")
</div>
